package com.qa.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qa.entity.Category;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 选择题
 * @author 徐
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QuestionVO implements Serializable {
    /**
     * 题目id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 题目内容
     */
    private String question;
    /**
     * 选项
     */
    private String choice;
    /**
     * 答案
     */
    private String answer;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 创建者id
     */
    private Long creator;
    /**
     * 是否公开
     */
    private Integer open;
    /**
     * 题型
     */
    private Integer kind;
    /**
     * 所属分类相关属性：id，name，status，open，creator
     */
    private List<Category> categories;
}
